﻿using System.Data;
using JCode.DALFactory;
using JCode.IDAL;
namespace JCode.BLL
{
    public class Code
    {
        private readonly ICode dal = DataAccess.CreateCode();
        public int Add(JCode.Model.CodeInfo model)
        {
            return dal.Add(model);

        }

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public JCode.Model.CodeInfo GetModel(int CodeID)
        {

            return dal.GetModel(CodeID);
        }
        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList(string strWhere)
        {
            return dal.GetList(strWhere);
        }
    }
}
